package com.w.utils.thread.concurrent;
/**
 *
 **/

/**
 * @Author weiwei
 * @Date 2020-11-18 22:23
 * @description 线程任务提交异常
 **/
public class InvokerException extends RuntimeException{
    private static final long serialVersionUID = 7815426752583648734L;
    private int code; // RpcException cannot be extended, use error code for exception type to keep compatibility

    public InvokerException() {
        super();
    }

    public InvokerException(String message, Throwable cause) {
        super(message, cause);
    }

    public InvokerException(String message) {
        super(message);
    }

    public InvokerException(Throwable cause) {
        super(cause);
    }

    public InvokerException(int code) {
        super();
        this.code = code;
    }

    public InvokerException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public InvokerException(int code, String message) {
        super(message);
        this.code = code;
    }

    public InvokerException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
